//
//  YHYExpandTableViewCell.m
//  Home
//
//  Created by 杨泓晔 on 16/7/1.
//  Copyright © 2016年 LanJue. All rights reserved.
//

#import "YHYExpandTableViewCell.h"

@implementation YHYExpandTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubView];
            }
    
    return self;
}

- (void)createSubView {
    self.contentView.backgroundColor = LV;
    _company = [UILabel new];
    [self.contentView addSubview:_company];
    [_company mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.mas_top).offset(10 * AUTO_HEIGHT);
        make.width.mas_equalTo(200 * AUTO_WIDTH);
        make.height.left.mas_equalTo(15 * AUTO_HEIGHT);
        
        
    }];
    _company.text = @"公司简称";
    _company.font = [UIFont fontWithName:@"Arial" size:TEXTCONTENTFONT];
    _company.textColor = ZI;
    
    
    
    //公司简介
    _companyTextField = [UITextField new];
    [self addSubview:_companyTextField];
    [_companyTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_company.mas_bottom).offset(10 * AUTO_HEIGHT);
        make.left.mas_equalTo(self);
        make.width.mas_equalTo(SCREEN_WIDTH);
        make.height.mas_equalTo(50 * AUTO_HEIGHT);
    }];
    _companyTextField.textColor =HS;
    _companyTextField.backgroundColor = [UIColor whiteColor];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
